package com.ajk.server.model;

import java.util.Date;
/**
 * 地区  <br>
 * dict_region <br>
 * v1.0 2016-05-01
 */
 public class RegionDict extends BaseModel implements Comparable<RegionDict>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//名称
 	//name
	private String name;

 	//父ID
 	//parent_id
	private Integer parentId;

 	//层级
 	//level
	private Integer level;

 	//拼音
 	//pinyin
	private String pinyin;

 	//行政区号
 	//code
	private String code;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	//排序值
 	//seq
	private Integer seq;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*名称
 	*name
 	*/
	public String getName() {
		return name;
	}
	
	/**
	*名称
 	*name
 	*/
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public Integer getParentId() {
		return parentId;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	/**
	*层级
 	*level
 	*/
	public Integer getLevel() {
		return level;
	}
	
	/**
	*层级
 	*level
 	*/
	public void setLevel(Integer level) {
		this.level = level;
	}
	
	/**
	*拼音
 	*pinyin
 	*/
	public String getPinyin() {
		return pinyin;
	}
	
	/**
	*拼音
 	*pinyin
 	*/
	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}
	
	/**
	*行政区号
 	*code
 	*/
	public String getCode() {
		return code;
	}
	
	/**
	*行政区号
 	*code
 	*/
	public void setCode(String code) {
		this.code = code;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*排序值
 	*seq
 	*/
	public Integer getSeq() {
		return seq;
	}
	
	/**
	*排序值
 	*seq
 	*/
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}

	@Override
	public int compareTo(RegionDict o) {
		if(o!=null && o.id!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
}	